from pyecharts.charts import Bar
from pyecharts import options
sal=[3000,6000,4000,5500,4000,5000]
city=['丰城','上海','九江','广州','南昌','北京']
bar=Bar()
bar.add_xaxis(city)
bar.add_yaxis('月薪/元',sal)
bar.set_global_opts(title_opts=options.TitleOpts(title='各城市的最低薪水图',subtitle='单位:元'))
bar.render('barmin.html')